package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物品归还对象 missing
 * 
 * @author slh
 * @date 2022-11-28
 */
public class Missing extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 物品名称 */
    @Excel(name = "物品名称")
    private String name;

    /** 发现时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:ss")
    @Excel(name = "发现时间", width = 30, dateFormat = "yyyy-MM-dd HH:MM:ss")
    private Date findTime;

    /** 发现者电话 */
    @Excel(name = "发现者电话")
    private String finderPhone;

    /** 物品领走时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:ss")
    @Excel(name = "物品领走时间", width = 30, dateFormat = "yyyy-MM-dd HH:MM:ss")
    private Date takeTime;

    /** 物品状态（0遗失，1归还） */
    @Excel(name = "物品状态", readConverterExp = "0=遗失，1归还")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setFindTime(Date findTime) 
    {
        this.findTime = findTime;
    }

    public Date getFindTime() 
    {
        return findTime;
    }
    public void setFinderPhone(String finderPhone) 
    {
        this.finderPhone = finderPhone;
    }

    public String getFinderPhone() 
    {
        return finderPhone;
    }
    public void setTakeTime(Date takeTime) 
    {
        this.takeTime = takeTime;
    }

    public Date getTakeTime() 
    {
        return takeTime;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("findTime", getFindTime())
            .append("finderPhone", getFinderPhone())
            .append("takeTime", getTakeTime())
            .append("status", getStatus())
            .toString();
    }
}
